// logs.js
const util = require('../../utils/util.js')

Page({
  data: {
    list: [
      {
        name:"王豪杰",
        price:9
      },
      {
        name:"胡兜兜",
        price:1000000
      },
      {
        name:"朱小玉",
        price:1
      },
      {
        name:"杨家胸",
        price:-10
      }
    ]
  },
  onLoad() {
    this.setData({
      cart: (wx.getStorageSync('cart') || []).map(i => {
        return util.formatTime(new Date(i))
      })
    })
  }
})
